import React from 'react'
import ReactDOM from 'react-dom/client'
import {HashRouter,BrowserRouter} from 'react-router-dom'

import {Provider} from 'react-redux'
import store from './store'
import App from './App'

import 'antd/dist/antd.css';
import './index.css'

const Router = process.env.NODE_ENV === 'production' ? BrowserRouter : HashRouter

ReactDOM.createRoot(document.getElementById('root')).render(
  // <React.StrictMode>
  <Provider store={store}>
    <Router>
      <App />
    </Router>
  </Provider>
  // </React.StrictMode>
)
